if (gtk_toggle_action_get_active (tmp_action) &&
(tmp_action != toggle_action))
{
- gtk_toggle_action_set_active (toggle_action, !active);
+ _gtk_toggle_action_set_active (toggle_action, !active);
break;
}
}
else
{
- gtk_toggle_action_set_active (toggle_action, !active);
+ _gtk_toggle_action_set_active (toggle_action, !active);
g_object_notify (G_OBJECT (action), "active");
tmp_list = radio_action->private_data->group;
"draw-as-radio", toggle_action->private_data->draw_as_radio,
NULL);
}
+
+
+/* Private */
+
+/*
+ * _gtk_toggle_action_set_active:
+ * @toggle_action: a #GtkToggleAction
+ * @is_active: whether the action is active or not
+ *
+ * Sets the #GtkToggleAction:active property directly. This function does
+ * not emit signals or notifications: it is left to the caller to do so.
+ */
+void
+_gtk_toggle_action_set_active (GtkToggleAction *toggle_action,
+ gboolean is_active)
+{
+ GtkToggleActionPrivate *priv = toggle_action->private_data;
+
+ priv->active = is_active;
+}
gboolean draw_as_radio);
gboolean gtk_toggle_action_get_draw_as_radio (GtkToggleAction *action);
+/* private */
+void _gtk_toggle_action_set_active (GtkToggleAction *toggle_action,
+ gboolean is_active);
+
G_END_DECLS